package task2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-06-14
 * Time:14:19
 */
public class RuralDog extends Dog{
    private String color;
    private double price;

    public RuralDog(double height, double weight, String color, double price) {
        super(height, weight);
        this.color = color;
        this.price = price;
    }

    @Override
    public void showMessage() {
        super.showMessage();
        System.out.println("颜色："+this.color+";价格："+this.price+"元。");
    }
}
